import request from '@/utils/request'

export function fetchList(query) {
    return request({
        url: '/Addqz/getList',
        method: 'get',
        params: query
    })
}

export function fetchArticle(id) {
    return request({
        url: '/vue-element-admin/article/detail',
        method: 'get',
        params: { id }
    })
}

//选择账号
export function fetchsmslist(query) {
    return request({
        url: '/Smsck/getList',
        method: 'get',
        params: query
    })
}

//分组列表
export function fetfzlist(query) {
    return request({
        url: '/Fenzu/getList',
        method: 'get',
        params: query
    })
}

export function createArticle(data) {
    return request({
        url: '/Addqz/getAdd',
        method: 'post',
        data
    })
}

export function updateArticle(data) {
    return request({
        url: '/Addqz/getEdit',
        method: 'post',
        data
    })
}
export function getDel(data) {
    return request({
        url: '/Addqz/getDel',
        method: 'post',
        data
    })
}
export function rwlog(data) {
    return request({
        url: '/Addqz/rwlog',
        method: 'post',
        data
    })
}

//在线的账号
export function getzhlist(data) {
    return request({
        url: '/Smsck/getList',
        method: 'post',
        data
    })
}
